package org.destinyshine.cricket.utils;

/**
 * Created by destinyliu on 2016/4/10.
 */
public class CharUtils {

    public static byte[] toASCIIByteArray(CharSequence chars) {
        byte[] bytes = new byte[chars.length()];
        for (int i = 0; i < chars.length(); i++) {
            bytes[i] = (byte) chars.charAt(i);
        }
        return bytes;
    }

}
